const router = require('koa-router')();

router.prefix('/api');

router.post('/doReg', async ctx => {
  ctx.body = {
    _id: 'hrth3423sfsf',
    msg: '注册成功'
  }
});

router.post('/doLogin', async ctx => {
  ctx.body = {
    _id: 'hrth3423sfsf',
    name: '张三'
  }
});

module.exports = router;